Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use caching in github actions workflows #262

Closed

Conversation

friedrichwilken
Copy link
Contributor

@friedrichwilken friedrichwilken commented Dec 19, 2023

Description

Changes proposed in this pull request:

  • use dependency caching in github actions workflows via setup-go
  • use binary caching in ghaw via cache

Related issue(s)

@friedrichwilken friedrichwilken requested a review from a team as a code owner December 19, 2023 11:12
@kyma-bot kyma-bot added area/ci Issues or PRs related to CI related topics cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 19, 2023
Comment on lines +29 to +34
- name: Cache Binaries
id: cache-binaries
uses: actions/cache@v3
with:
path: bin
key: ${{ runner.os }}-bin
Copy link
Contributor

@muralov muralov Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems the key is always same although binary is built newly. I've read the GH action documentation that the binary is only built only if key is different than previous key. However, here ${{ runner.os }}-bin is the same for the same OS although the code is changed.
Can you clarify this?

@@ -32,7 +32,14 @@ jobs:
- name: Cache Go dependencies
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version-file: "./go.mod"
Copy link
Contributor

@muralov muralov Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@friedrichwilken friedrichwilken deleted the use-caching-in-tests branch February 21, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Issues or PRs related to CI related topics cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants